/*
 *  Copyright 2003 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */

/*
 *  ======== evmdm642_eeprom.h ========
 *
 *  Interface for the CAT24WC256 I2C EEPROM on the EVMDM642 board
 */
#ifndef EVMDM642_EEPROM_
#define EVMDM642_EEPROM_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

/* EEPROM definitions */
#define EVMDM642_EEPROM_SIZE            0x8000
#define EVMDM642_EEPROM_I2CADDR         0x50
#define EVMDM642_EEPROM_BASE            0x000000

/* Read data from a range in the EEPROM */
void EVMDM642_EEPROM_read(Uint32 src, Uint32 dst, Uint32 length);

/* Write data to a data range in the EEPROM */
void EVMDM642_EEPROM_write(Uint32 src, Uint32 dst, Uint32 length);

#ifdef __cplusplus
}
#endif

#endif

